import { defineStore } from "pinia";
import actions from "./core/actions";
import state from "./core/state";
export const useStore = defineStore("main", {
  state: () => {
    return {
      ...state,
    };
  },
  getters: {
    // 函数类型，参数为 state
  },
  actions: {
    // 函数类型，函数内部可以通过this.xx 访问或修改state属性的值
    ...actions,
  },
});
